<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@include file="/common/common.jspf"%>
<script type="text/javascript" src="${ctx}/js/system/user/edit.js"></script>
<style type="text/css">
.col-sm-3 {
	width: 15%;
	float: left;
}
.col-sm-9 {
	width: 35%;
	float: left;
}
</style>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal" method="post"
		  action="${ctx}/product/editProduct.shtml">
		<input type="hidden" class="form-control"
			   name="productFormMap.itemId" id="itemId">
		<section class="panel panel-default">
			<div class="panel-body">
				<div class="form-group">
					<div class="col-sm-3">
						<label class="control-label">产品编号</label>
					</div>
					<div class="col-sm-9">
						<p>${order.ofcode}</p>

					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">产品名称</label>
						<div class="col-sm-9">
							<p>${order.stockid}</p>
						</div>
					</div>
				</div>

				<div class="form-group">
					<label class="col-sm-3 control-label">生产数量</label>
					<div class="col-sm-9">
						<p>${order.num}</p>
					</div>

					<div class="form-group">
						<label class="col-sm-3 control-label">订单数量</label>
						<div class="col-sm-9">
							<p>${order.num}</p>
						</div>
					</div>
				</div>
		</section>
	</form>
	<h3>订单关联物料</h3>
	<div id="pagings" class="pagclass">
        <table class="table">
            <thead>
            <tr>
                <th>物料名称</th>
                <th>物料编码</th>
                <th>库存上限</th>
                <th>库存下限</th>
            </tr>
            </thead>
            <tbody>
            <c:forEach items="${child}" var="childs">
                <tr>
                    <td>${childs.item_bom_no}</td>
                    <td>${childs.item_no}</td>
                    <td>${childs.balance_up}</td>
                    <td>${childs.balance_down}</td>
                </tr>
            </c:forEach>

            </tbody>
        </table>
    </div>
	<!-- Button trigger modal -->
	<script type="text/javascript">
		onloadurl();
	</script>
</body>
</html>